import Vue from 'vue'
import VueRouter from 'vue-router'
import Mian from "@/page/Mian";
import Demo01 from "@/page/Demo01";
import Demo02 from "@/page/Demo02";
import Demo03 from "@/page/Demo03";

Vue.use(VueRouter)

let router = new VueRouter({
    mode: "hash",
    // mode: "history",
    routes:[
        { path: '/',name:"Mian", component: Mian ,meta: { title: 'Mian' }},
        { path: '/Demo01',name:"Demo01", component: Demo01 },
        { path: '/Demo02',name:"Demo02", component: Demo02 },
        { path: '/Demo03',name:"Demo03", component: Demo03 },
    ],
})

export default router